package com.homeWork;

public class Instrument {
    private String kind;

    public Instrument() {
    }

    public Instrument(String kind) {
        this.kind = kind;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }
    public void play(){
        System.out.println(getKind()+"在演奏");
    }
}
